package com.example.demo.service.impl.qiaoliang;

/**
 * @author chenbenfeng
 * @date 2021-04-12
 */
// 长方形
public class Rectangle extends Shape {
    private int x;
    private int y;

    public Rectangle(int x, int y, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
    }

    @Override
    public void draw2() {
        drawAPI.draw(0, x, y);
    }
}
